#
# DCMTKConfig.cmake - DCMTK CMake configuration file for external projects
#

@PACKAGE_INIT@

# Basic version information
SET(DCMTK_MAJOR_VERSION @DCMTK_MAJOR_VERSION@)
SET(DCMTK_MINOR_VERSION @DCMTK_MINOR_VERSION@)
SET(DCMTK_BUILD_VERSION @DCMTK_BUILD_VERSION@)

# DCMTK libraries and modules
SET(DCMTK_MODULES "@DCMTK_MODULES@")
SET(DCMTK_LIBRARIES "@DCMTK_LIBRARY_TARGETS@")

# DCMTK build options
SET(DCMTK_WITH_TIFF @DCMTK_WITH_TIFF@)
SET(DCMTK_WITH_PNG @DCMTK_WITH_PNG@)
SET(DCMTK_WITH_XML @DCMTK_WITH_XML@)
SET(DCMTK_WITH_ZLIB @DCMTK_WITH_ZLIB@)
SET(DCMTK_WITH_OPENSSL @DCMTK_WITH_OPENSSL@)
SET(DCMTK_WITH_SNDFILE @DCMTK_WITH_SNDFILE@)
SET(DCMTK_WITH_ICONV @DCMTK_WITH_ICONV@)
SET(DCMTK_WITH_PRIVATE_TAGS @DCMTK_WITH_PRIVATE_TAGS@)
SET(DCMTK_WITH_THREADS @DCMTK_WITH_THREADS@)

# DCMTK shared libraries
SET(DCMTK_SHARED_LIBRARIES @BUILD_SHARED_LIBS@)
SET(DCMTK_SINGLE_SHARED_LIBRARY @BUILD_SINGLE_SHARED_LIBRARY@)

# DCMTK additional options
SET(DCMTK_OVERWRITE_WIN32_COMPILER_FLAGS @DCMTK_OVERWRITE_WIN32_COMPILER_FLAGS@)
SET(DCMTK_WIDE_CHAR_FILE_IO_FUNCTIONS @DCMTK_WIDE_CHAR_FILE_IO_FUNCTIONS@)
SET(DCMTK_WIDE_CHAR_MAIN_FUNCTION @DCMTK_WIDE_CHAR_MAIN_FUNCTION@)

@DCMTK_INCLUDE_DIR_CONFIGS@

SET_AND_CHECK(DCMTK_TARGETS "@PACKAGE_DCMTK_CMKDIR_CONFIG@/DCMTKTargets.cmake")

SET(DCMTK_INCLUDE_DIRS "")
FOREACH(module config ${DCMTK_MODULES})
  LIST(APPEND DCMTK_INCLUDE_DIRS ${DCMTK_${module}_INCLUDE_DIR})
ENDFOREACH(module)

@DCMTK_CONFIG_CODE@

# Compatibility: This variable is deprecated
SET(DCMTK_INCLUDE_DIR ${DCMTK_INCLUDE_DIRS})

IF(NOT DCMTK_TARGETS_IMPORTED)
  SET(DCMTK_TARGETS_IMPORTED 1)
  INCLUDE(${DCMTK_TARGETS})
ENDIF(NOT DCMTK_TARGETS_IMPORTED)
